package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Dicitem;
import cn.wolfcode.crm.query.DicitemQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DicitemMapper {
    int changeByPrimaryKey(Long id);
    void changebydicid(@Param("id") Long id,@Param("state") boolean state);

    int insert(Dicitem entity);

    Dicitem selectByPrimaryKey(Long id);

    List<Dicitem> selectAll();

    int updateByPrimaryKey(Dicitem entity);


    int query4Count(DicitemQueryObject qo);
    List<Dicitem> query4List(DicitemQueryObject qo);


    void updateByPromiss(@Param("name") String name,@Param("id") Long id);

    List<Dicitem> selectItemBySn(String sn);




}